PASO 15: Cuando random_choice es 3 , la computadora elige "scissors" . Guardaremos esto para averiguar qué jugador gana.

  • Haga clic en LÓGICA, vaya a y arrastre String Variable .
  • Colóquelo dentro de la instrucción if, debajo de .Sprite() .
  • Cambie el nombre de la variable a computer_choice y cambie el valor a "scissors" .

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)